<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <title>段落编辑</title>

    <link rel="stylesheet" href="${ctx}/static/styles/std_detail.css" type="text/css">

    <script src="${ctx}/static/js/jquery-2.1.1.min.js" type="text/javascript"></script>
</head>

<body>
<div class="std-main">
    <div class="container">
        <h5>文档段落编辑</h5>
        <div class="row" style="padding-bottom: 50px">
            <form id="inputForm" action="${ctx}/para/update" method="post" class="form-horizontal">
                <input type="hidden" name="id" value="${para.id}"/>
                <input type="hidden" name="documentId" value="${doc.id}"/>
                <input type="hidden" name="height" value="${para.height}"/>
                <input type="hidden" name="width" value="${para.width}"/>
                <input type="hidden" name="orderInDocument" value="${para.orderInDocument}"/>
                <input type="hidden" name="userId" value="${para.userId}"/>
                <div class="std_edit_detail">
                    <div class="std-info">
                        <div class="input-group">
                            <span class="input-group-addon">内容：</span>
                                <textarea style="height: 400px; width: 930px;" name="content">${para.content}</textarea>
                        </div>
                        <%--<div class="input-group">--%>
                            <%--<span class="input-group-addon">段落在文档中 次序：</span><input type="text" name="orderInDocument"--%>
                                                                               <%--value="${para.orderInDocument}"--%>
                                                                               <%--class="form-control"></p>--%>
                        <%--</div>--%>

                    </div>
                </div>

                <div class="col-md-4">
                <%--<textarea style="white-space:nowrap; overflow:scroll;" cols="44" rows="20">--%>
                    <%--${doc.content}--%>
                <%--</textarea>--%>
                </div>

                <div class="news-btn-area">
                    <button type="submit" class="btn btn-success info-submit">
                        <span class="glyphicon glyphicon-ok"></span> 发布
                    </button>
                    <button type="reset" class="btn btn-danger">
                        <span class="glyphicon glyphicon-remove"></span> 重置
                    </button>
                </div>
            </form>
        </div>

    </div>
</div>

</body>
</html>
